package com.yzk.train.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum ExceptionEnum {

    MEMBER_MOBILE_EXIST("手机号已存在"),
    MEMBER_MOBILE_NOT_EXIST("请先获取短信验证码"),
    MEMBER_MOBILE_CODE_ERROR("短信验证码错误"),

    PASSENGER_MUCH_ERROR("乘客保存过多"),

    BUSINESS_STATION_NAME_UNIQUE_ERROR("车站已存在"),
    BUSINESS_TRAIN_CODE_UNIQUE_ERROR("车次编号已存在"),
    BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR("同车次站序已存在"),
    BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR("同车次站名已存在"),
    BUSINESS_TRAIN_CARRIAGE_INDEX_UNIQUE_ERROR("同车次厢号已存在"),

    TICKET_COUNT_NOT_ENOUGH_ERROR("余票不足"),

    CONFIRM_ORDER_ERROR("服务器繁忙，请稍后重试"),
    CONFIRM_ORDER_LOCK_FAIL("当前购票人数过多，请稍后重试"),
    CONFIRM_ORDER_FLOW_EXCEPTION("当前购票人数过多，请稍后重试");

    private final String desc;

}
